package cn.itcast.dao;

import cn.itcast.entity.OrderQueryPageBean;
import cn.itcast.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderListDao {

    /**删除预约对象*/
    Boolean deleteOrderById(String id);

    /**新建预约对象*/
    Boolean saveOrder(Order order);

    /**修改预约对象*/
    Boolean updateOrder(Order order);

    /**修改到诊情况*/
    Boolean updateOrderArrivalById(@Param("id") String id, @Param("arrival")Integer arrival);

    /**查询预约对象*/
    Order findOrderById(String id);


    /**条件分页查询*/
    List<Order> findAllOrderByPage(OrderQueryPageBean orderQueryPageBean);

    /**查询单日预约数量*/
    Integer findOrderConutByOrderDate(String orderDate);

}
